<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="../common/common.jspf"%>
<script type="text/javascript" src="${ctx}/js/member/edit.js"></script>

<style type="text/css">
.col-sm-2 {
	width: 30%;
	float: left;
}

.col-sm-4 {
	width: 70%;
	float: left;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/member/saveMember.shtml">
		<input type="hidden" class="form-control checkacc"
			value="${member.mId}" name="mId" id="mId">
		<section class="panel panel-default">
		<div class="panel-body">
			<div class="form-group">
				<label class="col-sm-2 control-label">会员名称</label>
				<div class="col-sm-4">
					<input type="text" class="form-control"
						placeholder="请输入会员名称" value="${member.mName}"
						name="mName" id="mName">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label">会员性别</label>
				<div class="col-sm-4">
				<c:choose>
					<c:when test="${member.mSex==1 }">
						<input type="radio" name="mSex" value="0" >男
					    <input type="radio" name="mSex" value="1" checked>女	
				    </c:when>
				    <c:otherwise>
				    	<input type="radio" name="mSex" value="0" checked>男
					    <input type="radio" name="mSex" value="1">女
				    </c:otherwise>
				</c:choose>
				
				<%-- <c:if test="${member.mSex==0 }">
					<input type="radio" name="mSex" value="0" checked>男
					<input type="radio" name="mSex" value="1">女
				</c:if>
				<c:if test="${member.mSex==1 }">
					
				</c:if> --%>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label">会员电话</label>
				<div class="col-sm-4">
					<input type="text" class="form-control"
						placeholder="请输入电话" value="${member.mPhone}"
						name="mPhone" id="mPhone">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label">会员密码</label>
				<div class="col-sm-4">
					<input type="text" class="form-control"
						placeholder="请输入密码" 
						name="mPwd" id="mPwd">
				</div>
			</div>
			<%-- <div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label">会员等级</label>
				<div class="col-sm-4">
					<input type="text" class="form-control"
						placeholder="请输入商品分类" value="${goods.classId}"
						name="classId" id="classId">
					<select class="form-control m-b" name="grade" id="grade">
						<option value="">--请选择--</option>
						<c:forEach var="item" items="${discount}">
							<option value="${item.grade}" <c:if test="${member.grade==item.grade}">selected</c:if> >${item.gradeName}</option>
						</c:forEach>
					</select>
				</div>
			</div> --%>
		</div>
		<footer class="panel-footer text-right bg-light lter">
			<button type="submit" class="btn btn-success btn-s-xs">保存</button>
		</footer> </section>
	</form>
	<script type="text/javascript">
		onloadurl();
	</script>
</body>
</html>